from django.urls import path
# 引入视图类
from .views import HomePageView, SendCodeView, RegisterView, SendActiveCodeView, ActiveView

urlpatterns = [
    path('', HomePageView.as_view(), name="homepage"),
    path('sendcode/', SendCodeView.as_view(), name='sendcode'),
    path('register/', RegisterView.as_view(), name='register'),
    path('sendactivecode/', SendActiveCodeView.as_view(), name='sendactivecode'),
    path('active/<str:code>', ActiveView.as_view(), name='active')
]
